import sys
from PyQt5 import uic
from PyQt5.QtWidgets import QApplication, QMainWindow
import os

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        uic.loadUi(os.path.join(os.path.dirname(__file__), 'ui', 'main_window.ui'), self)
        self.setWindowTitle('Sanxi Shell 多平台终端工具')
        # 可在此处初始化各控件，如self.serverTree, self.mainTab等
        # TODO: 后续添加主界面组件和功能

if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())